# 有一种数据格式，每种编程语言都认识
# json；js 对象符号

# 字符串  bytes -->字节流
#  json 字符串   和  python-dict 长得一样
# js 对象 --》dict --》map


'{"name":1c,"age":12}'

import json
dict1 = {'name':'1c','age':[12,13]}
res = json.dumps(dict1)
print(res)
print(type(res))

with open('jsondumps.txt','w') as f:
    f.write(res)

rng = json.loads(res)
print(rng)
print(type(rng))
# for i in rng:
#     rng[i] =




